package com.jianying.day03;

import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

import java.util.Arrays;

/**
 * ClassName: Flink04_Source_Col
 * Package: com.atguigu.day03
 * Description:
 *
 * @Author: tubage
 * @Create: 2024/4/1 10:48
 * @Version: 1.0
 */
public class Flink04_Source_Col {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        DataStreamSource<Integer> colDS = env.fromCollection(Arrays.asList(1, 2, 3, 4, 5));
//        DataStreamSource<Integer> ElmDS = env.fromElements(1, 2, 3);

        colDS.print();
        env.execute();

    }
}
